<style>
	*,html{
		padding:0;
		margin:0;
	}
	.title{
		margin:0;
		padding:0;
		letter-spacing: 3px;
		font-size: 12px;
	}
	.container{
		margin:20px 0;
		padding:10px 0 0 0;
		border-top: 1px solid #000;
	}

	.child-container{
		display:inline;
	}

	table.table{
		width: 100%;
		border-collapse:collapse;
	}

	table.table tr td{
		height:20px;
		font-size: 12px;
	}
	hr.divider{
		border:1px solid #000;
		margin:10px 0;
		clear: both;
	}

	.ender{
		display:block;
		border-top: 2px dashed #000;
		width: 50px;
		margin: 10px auto;
		clear:both;
	}
</style>

<?if($print):?>
	<p style="text-align:center;margin:0;"><?=$school['school_name'];?></p>
	<p style="text-align:center;margin:0;font-size:12px;">Class List</p>
	<span style="clear:both"></span>
	<?if($data):?>
		<?foreach($data as $k => $v):?>
			<?$this->load->view('print_pdf_layouts/_classlist',$v['data'])?>
		<?endforeach;?>
	<?endif;?>
<?else:?>
	<p style="text-align:center;margin:0;"><?=$school['school_name'];?></p>
	<p style="text-align:center;margin:0;font-size:12px;">Class List</p>
	<span style="clear:both"></span>
	<?$this->load->view('print_pdf_layouts/_classlist',$data)?>
<?endif;?>